from pyecharts import options
from pyecharts.charts import Pie

data = [("南昌",0.077),("北京",0.192),("成都",0.154),("上海",0.308),("深圳",0.269)]

pie = Pie()
pie.add("单位/个",data)
pie.set_global_opts(title_opts=options.TitleOpts(title="各城市的岗位量占比图"))
pie.render("piera.html")
